<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>
<c-rt:if test="${!empty param.paramId}">
${pu:reqSet('keyword', pu:get('com.yaodian100.ec.search.entity.KeywordDefault', param.paramId)) }
</c-rt:if>
<h1>预设关键字管理</h1>
<s:actionerror />
<s:actionmessage />
<s:fielderror />
${message }
<s:form name="formObj" action="updateDefaultKeyword.do" method="post">
<input type="hidden" name="paramId" value="${param.paramId }"/>
<br />
<table width="700">
	<tr class="tb-data">
		<th>* 目錄ID</th>
<c:if test="${!empty keyword.id}">
		<td>${keyword.categoryId}<input type="hidden" name="categoryId" value="${keyword.categoryId }"/></td>
</c:if><c:if test="${empty keyword.id}">
		<td><s:select name="categoryId" list="categories" listKey="id" listValue="name"/></td>
</c:if>
	</tr>
	<tr class="tb-data">
		<th>关键字</th>
		<td>
		<input type="text" name="keywordStr" value="${keyword.keyword }"/>中文建议四个字内</td>
	</tr>
	<tr>
		<td colspan="2">
			<div class="f-link">
				<a href="#" onclick="document.formObj.submit();" >储存修改</a>
<c:if test="${empty keyword.id}">
				<a href="listDefaultKeyword.do">回查询页</a>
</c:if>
			</div>
		</td>
	</tr>		
</table>
</s:form>
